import request from '@/utils/request'
// 获取用户信息列表
export const userList = (params) => {
  return request({
    url: '/user/list',
    params
  })
}

// 台创建用户

export const userAdd = (data) => {
  return request({
    url: '/user/add',
    method: 'post',
    data
  })
}

// 用户信息编辑接口

export const userEdit = (data) => {
  return request({
    url: '/user/edit',
    method: 'post',
    data
  })
}

// 用户删除接口
export const userRemove = (id) => {
  return request({
    url: '/user/remove',
    method: 'post',
    data: {
      id
    }
  })
}

// 修改用户状态。启用或者禁用账号
export const userStatus = (id) => {
  return request({
    url: '/user/status',
    method: 'post',
    data: {
      id
    }
  })
}
